<template>
  <div id="home">
    <group title="导航">
      <cell v-if="item.meta.inmap === '1'" :title="item.meta.title" :link="{ path: item.path}" is-link v-for="(item, key) in routelist.routes" :key="key"></cell>
    </group>
  </div>
</template>

<script>
import Group from 'vux/src/components/group'
import Cell from 'vux/src/components/cell'
export default{
  name: 'home',
  components: {
    Group,
    Cell
  },
  data () {
    return {
      routelist: [],
      showaxios: function () {
        this.$axios.get('/json/userinfo.json')
        .then(function (response) {
          console.log(response)
        })
        .catch(function (error) {
          console.log(error)
        })
      }
    }
  },
  created () {
    // this.routeto('test', {name: 'sfdsaf'})
    this.routelist = this.$router.options
  },
  methods: {
  }
}
</script>
<style lang="less">
#home {
  background-color: #ffffff;
}
</style>
